//
// Decompiled by Jadx - 1232ms
//
package com.c;

import android.content.Context;
import android.content.SharedPreferences;
import android.os.Handler;
import com.b.a.af;
import com.b.a.c.c;
import com.b.a.c.d;
import com.b.a.ۗۡۚ;
import com.b.a.ۗۢۛ;
import com.b.a.ۗۦۘ;
import com.b.a.ۗ۬ۛ;
import com.b.a.ۙۡۢ;
import com.b.a.ۚۦۥ;
import com.b.a.ۛۛ۠;
import com.b.a.ۜۙۚ;
import com.b.a.۠۠ۖ;
import com.b.a.ۢ۟ۘ;
import com.b.a.ۤۧۤ;
import com.b.a.ۤۨۛ;
import com.b.a.ۥۛۜ;
import com.b.a.ۦۧ۠;
import com.b.a.ۧۗۛ;
import com.b.a.ۨۖۚ;
import com.b.a.۫ۢ۬;
import com.b.a.۫ۧۤ;
import com.b.a.۬ۢۛ;
import com.b.a.۬ۥۨ;
import com.best.besttv.b;
import com.best.besttv.f;
import com.best.besttv.h;
import com.best.besttv.i;
import com.forcetech.android.ForceTV;
import tv.danmaku.ijk.media.player.IjkMediaCodecInfo;
import tv.danmaku.ijk.media.player.IjkMediaMeta;
import tv.danmaku.ijk.media.player.IjkTimedText;
import tv.danmaku.ijk.media.player.MediaInfo;
import tv.danmaku.ijk.media.player.R;
import tv.danmaku.ijk.media.player.ffmpeg.FFmpegApi;
import tv.danmaku.ijk.media.player.pragma.DebugLog;
import tv.danmaku.ijk.media.player.pragma.Pragma;

public class a {
    private static final short[] ۛ۠ۜ = {4375, 17446, 17444, 17461, 17423, 17440, 17452, 17444, 302, -12099, -12104, -12121, -12108, -12100, -12112, -12110, 8271, 519, 519, 525, 519, 519, 525, 519, 519, 603, 606, 577, 594, 602, 598, 596, 344, 9858, 9863, 9880, 9867, 669, 1453, 1448, 1463, 1444, 7259, 1330, 1335, 1320, 1339, 992, 14414, 14411, 14420, 14407, 4647, 22385, 22388, 22379, 22392, 22389, 22377, 22377, 22381, 22382, 22311, 22322, 22322, 22377, 22379, 22384, 22386, 22379, 22388, 22392, 22396, 22381, 22323, 22394, 22388, 22377, 22392, 22392, 22323, 22388, 22386, 22322, 22377, 22379, 22384, 22386, 22379, 22388, 22392, 22322, 22383, 22392, 22382, 22386, 22376, 22383, 22398, 22392, 22382, 22338, 22375, 22389, 22388, 22399, 22386, 22323, 22391, 22382};
    private Context a;
    private String b;
    private Handler c;

    static /* synthetic */ String a(a aVar) {
        return aVar.b;
    }

    static /* synthetic */ void a(a aVar, String str) {
        aVar.b = str;
    }

    /* JADX WARNING: Can't fix incorrect switch cases order */
    /* JADX WARNING: Code restructure failed: missing block: B:11:0x006b, code lost:
        r1 = r27;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:13:0x0071, code lost:
        if (a.a.a.a.a.ۧۦۛ >= 0) goto L_0x0073;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:14:0x0073, code lost:
        r22 = r1;
        r21 = r7;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:15:0x0077, code lost:
        r1 = r27;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:31:0x00ef, code lost:
        r1 = r22;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:32:0x00f3, code lost:
        r7 = r21;
        r21 = a.a.a.a.a.۟ۥ۫("۠ۥۜ");
     */
    /* JADX WARNING: Code restructure failed: missing block: B:41:0x0141, code lost:
        r7 = "ۛ۫ۨ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:45:0x015a, code lost:
        r7 = "ۜ۟ۢ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:49:0x0185, code lost:
        r7 = "ۨ۟ۥ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:53:0x0198, code lost:
        r7 = a.a.a.a.a.۟ۥ۫(r7);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:54:0x019c, code lost:
        r1 = r22;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:55:0x019e, code lost:
        r26 = r21;
        r21 = r7;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:56:0x01a2, code lost:
        r7 = r26;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:58:0x01a8, code lost:
        r7 = com.best.besttv.f.۠ۗۤ(r7);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:64:0x01e3, code lost:
        r7 = "ۘۢ۫";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:68:0x0203, code lost:
        r7 = "ۙۦ۫";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:6:0x004d, code lost:
        r22 = r1;
        r21 = r7;
        r1 = r27;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:72:0x0222, code lost:
        r7 = "ۢ۬ۢ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:74:0x0232, code lost:
        r7 = r21;
        r21 = r26;
     */
    public void a(String str) {
        int i;
        short s;
        int i2;
        short s2;
        int i3;
        int i4;
        int i5;
        short s3;
        String str2;
        short s4;
        int i6;
        int i7;
        short s5;
        int i8;
        int i9;
        String str3 = str;
        int i10 = 0;
        Context context = null;
        SharedPreferences sharedPreferences = null;
        SharedPreferences.Editor editor = null;
        short s6 = 0;
        short s7 = 0;
        int i11 = 0;
        short[] sArr = null;
        int i12 = 0;
        int i13 = 0;
        int r21 = f.۠ۗۤ("ۖۥۗ");
        short[] sArr2 = null;
        int i14 = 0;
        int i15 = 0;
        int i16 = 0;
        char c2 = 0;
        int i17 = 0;
        int i18 = 0;
        int i19 = 0;
        short[] sArr3 = null;
        short[] sArr4 = null;
        while (true) {
            switch (r21) {
                case 1738216:
                    i3 = i10;
                    s = s6;
                    short[] sArr5 = ۛ۠ۜ;
                    if (!com.b.a.e.a.ۧۧۢ) {
                        i4 = i3;
                        i = a.a.a.a.a.۟ۥ۫("۫ۚۘ");
                        sArr3 = sArr5;
                        break;
                    }
                    break;
                case 1738790:
                    i7 = i10;
                    s5 = s6;
                    i11 = 567;
                    break;
                case 1739966:
                    s2 = s6;
                    i9 = i10;
                    SharedPreferences r1 = h.۫ۙۘ(context, ۤۧۤ.ۧۖۢ(sArr4, i14, i15, i11), 0);
                    if (ۙۡۢ.۫ۦۦ) {
                        s6 = s2;
                        r21 = f.۠ۗۤ("ۨۛۚ");
                        sharedPreferences = r1;
                        break;
                    }
                case 1740065:
                    d.۬ۖۙ();
                    com.d.a.ۜۤۧ();
                    return;
                case 1740728:
                    i3 = i10;
                    s = s6;
                    Context context2 = this.a;
                    short[] sArr6 = ۛ۠ۜ;
                    if (ۛۛ۠.ۦ۟ۢ > 0) {
                        i10 = i3;
                        sArr4 = sArr6;
                        i14 = 25;
                        s4 = s;
                        i6 = f.۠ۗۤ("ۡ۟ۘ");
                        context = context2;
                        break;
                    }
                    break;
                case 1741150:
                    h.ۛۙۡ();
                    if (IjkTimedText.ۚۤۢ() >= 0) {
                        i8 = i10;
                        s = s6;
                        break;
                    }
                    break;
                case 1741631:
                    i7 = i10;
                    s5 = s6;
                    i11 = 36305;
                    break;
                case 1742600:
                    i3 = i10;
                    s = s6;
                    int i20 = i17 + i18;
                    int i21 = i20 + i20;
                    if (!R.ۘۛۚ()) {
                        i19 = i21;
                        s6 = s;
                        i10 = i3;
                        r21 = a.a.a.a.a.۟ۥ۫("ۧ۬ۙ");
                        s7 = 6003;
                        break;
                    }
                    break;
                case 1743224:
                    return;
                case 1743228:
                    i2 = i10;
                    s2 = s6;
                    if (!R.ۜۛۨ(str3, com.d.f.ۘۧ۟(sArr, i12, i13, i11))) {
                        str2 = "ۙۙۘ";
                        break;
                    }
                    break;
                case 1743807:
                    break;
                case 1747831:
                    b.ۙۡۙ();
                    if (!۫ۢ۬.ۧۤۤ()) {
                        i5 = i10;
                        s3 = s6;
                        break;
                    }
                    break;
                case 1747836:
                    i2 = i10;
                    s2 = s6;
                    s6 = sArr3[c2];
                    int i22 = s6 * s6;
                    if (com.b.a.d.b.ۜۜۡ == 0) {
                        r21 = a.a.a.a.a.۟ۥ۫("ۛۗۤ");
                        i10 = i2;
                        i17 = i22;
                        i18 = 0x0225dda9;
                        break;
                    }
                    break;
                case 1749976:
                    com.a.a.b.ۜۖۖ();
                    break;
                case 1754772:
                    i2 = i10;
                    s2 = s6;
                    int i23 = s2 + s7;
                    if ((i23 * i23) - i19 > 0) {
                        str2 = "ۚۗۜ";
                        break;
                    } else {
                        String str4 = "ۗۘۧ";
                        break;
                    }
                case 1755207:
                    s = s6;
                    SharedPreferences.Editor r7 = DebugLog.ۘ۬ۢ(sharedPreferences);
                    short[] sArr7 = ۛ۠ۜ;
                    if (a.a.a.a.a.ۧۗۤ() > 0) {
                        sArr2 = sArr7;
                        i16 = 29;
                        s4 = s;
                        i6 = f.۠ۗۤ("ۨۡۖ");
                        editor = r7;
                        break;
                    } else {
                        i8 = i10;
                        break;
                    }
                case 1755342:
                    i8 = i10;
                    s = s6;
                    short[] sArr8 = ۛ۠ۜ;
                    if (!۫ۧۤ.ۗ۠ۢ()) {
                        i4 = i8;
                        i12 = 17;
                        i13 = 8;
                        i = a.a.a.a.a.۟ۥ۫("ۛ۫۬");
                        sArr = sArr8;
                        break;
                    }
                    break;
                case 1755389:
                    s2 = s6;
                    if (b.ۨۡۢ == 0) {
                        s6 = s2;
                        r21 = f.۠ۗۤ("۫ۚ۠");
                        i10 = 3;
                        break;
                    } else {
                        i2 = i10;
                        break;
                    }
                case 1758057:
                    i5 = i10;
                    s3 = s6;
                    if (ۛۛ۠.ۦۜۗ() > 0) {
                        s6 = s3;
                        i10 = i5;
                        r21 = f.۠ۗۤ("۠ۥۡ");
                        c2 = 16;
                        break;
                    }
                    break;
                case 1758065:
                    s2 = s6;
                    d.ۜۗۧ(editor, ۦۧ۠.۬ۜۥ(sArr2, i16, i10, i11), str3);
                    com.d.a.ۖۤۡ(editor);
                    i2 = i10;
                    break;
                default:
                    i9 = i10;
                    s2 = s6;
                    if (com.b.a.d.b.ۗۤۗ() > 0) {
                        int r72 = f.۠ۗۤ("ۘ۟ۥ");
                        i10 = i9;
                        i15 = 4;
                        break;
                    }
            }
        }
    }

    public void c() {
        MediaInfo.ۤۗ۫(this.c, 0);
    }

    /* JADX WARNING: Can't fix incorrect switch cases order */
    /* JADX WARNING: Code restructure failed: missing block: B:10:0x003c, code lost:
        if (com.b.a.ۙۡۢ.ۡۡۜ() != false) goto L_0x003e;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:11:0x003e, code lost:
        r15 = r22;
        r16 = r1;
        r1 = r21;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:13:0x004d, code lost:
        if (com.best.besttv.a.۬۟ۘ() < 0) goto L_0x004f;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:14:0x004f, code lost:
        r15 = r22;
        r16 = r1;
        r1 = r21;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:23:0x0091, code lost:
        r1 = r21;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:33:0x00ed, code lost:
        r14 = "ۗ۬ۛ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:38:0x0102, code lost:
        r14 = a.a.a.a.a.۟ۥ۫(r14);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:41:0x0116, code lost:
        r14 = "ۥ۬ۡ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:45:0x0138, code lost:
        r14 = "ۢۖۡ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:49:0x0159, code lost:
        r14 = "ۗ۟ۡ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:56:0x0196, code lost:
        r14 = "ۦۚۨ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:60:0x01b4, code lost:
        r14 = "ۧ۟ۧ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:62:0x01b9, code lost:
        r14 = com.best.besttv.f.۠ۗۤ(r14);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:63:0x01bd, code lost:
        r1 = r16;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:6:0x0025, code lost:
        r15 = r22;
        r16 = r1;
        r1 = r21;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:8:0x002f, code lost:
        r16 = r1;
        r1 = r21;
     */
    public String d(String str) {
        SharedPreferences sharedPreferences;
        String str2;
        SharedPreferences sharedPreferences2;
        SharedPreferences sharedPreferences3;
        Context context = null;
        SharedPreferences sharedPreferences4 = null;
        short[] sArr = null;
        char c2 = 0;
        short s = 0;
        short s2 = 0;
        int i = 0;
        int i2 = 0;
        int i3 = 0;
        int i4 = 0;
        short[] sArr2 = null;
        int i5 = 0;
        int i6 = 0;
        short[] sArr3 = null;
        int r14 = a.a.a.a.a.۟ۥ۫("۫ۘۥ");
        while (true) {
            switch (r14) {
                case 1738257:
                    String str3 = str;
                    sharedPreferences2 = sharedPreferences4;
                    if (!af.ۨۛۗ()) {
                        r14 = f.۠ۗۤ("۟ۧۘ");
                        sharedPreferences4 = sharedPreferences2;
                        c2 = '4';
                        break;
                    }
                    break;
                case 1739001:
                    IjkMediaMeta.۠ۨۡ();
                    break;
                case 1739398:
                    String str4 = str;
                    sharedPreferences2 = sharedPreferences4;
                    Context context2 = this.a;
                    short[] sArr4 = ۛ۠ۜ;
                    if (!IjkMediaCodecInfo.ۗۤۙ()) {
                        sharedPreferences4 = sharedPreferences2;
                        sArr2 = sArr4;
                        i5 = 53;
                        Context context3 = context2;
                        r14 = a.a.a.a.a.۟ۥ۫("ۧۜۘ");
                        context = context3;
                        break;
                    }
                    break;
                case 1739766:
                    String str5 = str;
                    sharedPreferences = sharedPreferences4;
                    if ((i3 + 1) - i2 <= 0) {
                        String str6 = "ۨۡۧ";
                        break;
                    } else {
                        str2 = "ۛ۫ۜ";
                        break;
                    }
                case 1741767:
                    return h.ۢۥۙ(sArr3, 57, 53, i4);
                case 1742245:
                    String str7 = str;
                    sharedPreferences = sharedPreferences4;
                    sharedPreferences4 = h.۫ۙۘ(context, com.d.f.ۘۧ۟(sArr2, i5, i6, i4), 0);
                    if (com.best.besttv.a.۬۟ۘ() < 0) {
                        r14 = f.۠ۗۤ("ۢۛ۬");
                        break;
                    }
                    break;
                case 1743212:
                    String str8 = str;
                    sharedPreferences3 = sharedPreferences4;
                    i4 = 48010;
                    break;
                case 1746875:
                    String str9 = str;
                    SharedPreferences sharedPreferences5 = sharedPreferences4;
                    int i7 = i * i;
                    int i8 = s * 2;
                    if (!۫ۢ۬.ۘۗۨ) {
                        sharedPreferences4 = sharedPreferences5;
                        i3 = i8;
                        int i9 = i7;
                        r14 = f.۠ۗۤ("ۘۙۗ");
                        i2 = i9;
                        break;
                    }
                    break;
                case 1746928:
                    String str10 = str;
                    SharedPreferences sharedPreferences6 = sharedPreferences4;
                    short s3 = sArr[c2];
                    if (!ۤۨۛ.ۙۢۗ) {
                        sharedPreferences4 = sharedPreferences6;
                        s2 = 1;
                        short s4 = s3;
                        r14 = f.۠ۗۤ("ۦۚۘ");
                        s = s4;
                        break;
                    }
                    break;
                case 1749293:
                    ۬ۢۛ.ۖۨۛ();
                    if (!af.ۨۛۗ()) {
                        String str11 = str;
                        break;
                    }
                    break;
                case 1749380:
                    String str12 = str;
                    sharedPreferences2 = sharedPreferences4;
                    short[] sArr5 = ۛ۠ۜ;
                    if (ۤۧۤ.ۨۧۥ() == 0) {
                        sharedPreferences4 = sharedPreferences2;
                        short[] sArr6 = sArr5;
                        r14 = f.۠ۗۤ("ۖۦۡ");
                        sArr = sArr6;
                        break;
                    }
                    break;
                case 1749459:
                    com.best.besttv.a.ۙۚ۫(sharedPreferences4, str, "");
                    short[] sArr7 = ۛ۠ۜ;
                    if (com.a.a.b.ۜ۫۠ == 0) {
                        short[] sArr8 = sArr7;
                        r14 = f.۠ۗۤ("ۚۛۨ");
                        sArr3 = sArr8;
                        break;
                    }
                    break;
                case 1752858:
                    ۦۧ۠.۟۬ۢ();
                    break;
                case 1753252:
                    String str13 = str;
                    sharedPreferences = sharedPreferences4;
                    int i10 = s + s2;
                    if (ۙۡۢ.ۡۡۜ()) {
                        sharedPreferences4 = sharedPreferences;
                        int i11 = i10;
                        r14 = f.۠ۗۤ("۟ۥۡ");
                        i = i11;
                        break;
                    }
                    break;
                case 1753268:
                    a.a.a.a.a.ۧۗۤ();
                    break;
                case 1754275:
                    String str14 = str;
                    sharedPreferences = sharedPreferences4;
                    if (۫ۢ۬.ۧۤۤ()) {
                        r14 = a.a.a.a.a.۟ۥ۫("ۚ۫ۖ");
                        sharedPreferences4 = sharedPreferences;
                        i6 = 4;
                        break;
                    }
                    break;
                case 1755406:
                    String str15 = str;
                    sharedPreferences3 = sharedPreferences4;
                    i4 = 22301;
                    break;
                case 1758008:
                    String str16 = str;
                    sharedPreferences = sharedPreferences4;
                    if (com.b.a.d.a.ۡۖۤ() > 0) {
                        str2 = "ۢۙۛ";
                        break;
                    }
                default:
                    ۫ۢ۬.ۧۤۤ();
                    return null;
            }
        }
    }

    /* JADX WARNING: Can't fix incorrect switch cases order */
    /* JADX WARNING: Code restructure failed: missing block: B:21:0x0079, code lost:
        if (tv.danmaku.ijk.media.player.ffmpeg.FFmpegApi.۬ۛۤ() == false) goto L_0x00dd;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:38:0x00c1, code lost:
        if (tv.danmaku.ijk.media.player.MediaInfo.ۜۚۘ() >= 0) goto L_0x0105;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:44:0x00dd, code lost:
        r11 = "ۢۥۖ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:50:0x00f4, code lost:
        r11 = "ۨۖۙ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:53:0x0102, code lost:
        r11 = "ۨۧۧ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:54:0x0105, code lost:
        r11 = "ۛۨۗ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:55:0x0107, code lost:
        r11 = com.best.besttv.f.۠ۗۤ(r11);
     */
    static {
        String str;
        int i = 0;
        short[] sArr = null;
        int i2 = 0;
        char c2 = 0;
        short s = 0;
        short s2 = 0;
        int i3 = 0;
        int i4 = 0;
        int i5 = 0;
        int i6 = 0;
        short[] sArr2 = null;
        String str2 = "۟ۡۡ";
        while (true) {
            int r11 = a.a.a.a.a.۟ۥ۫(str2);
            while (true) {
                switch (r11) {
                    case 1740210:
                        i6 = 17473;
                        break;
                    case 1740633:
                        if (i.ۙۜۖ == 0) {
                            r11 = f.۠ۗۤ("ۥ۠ۧ");
                            i2 = 7;
                            break;
                        }
                        break;
                    case 1743087:
                        if (ۙۡۢ.ۡۡۜ()) {
                            r11 = f.۠ۗۤ("ۡ۫ۦ");
                            i5 = 1;
                            break;
                        }
                        break;
                    case 1743114:
                        com.b.a.d.۫ۧۢ();
                        break;
                    case 1746751:
                        short[] sArr3 = ۛ۠ۜ;
                        if (MediaInfo.۟ۥ۫ == 0) {
                            c2 = 0;
                            short[] sArr4 = sArr3;
                            r11 = f.۠ۗۤ("ۢ۫ۚ");
                            sArr = sArr4;
                            break;
                        }
                        break;
                    case 1746899:
                        i6 = 13596;
                        break;
                    case 1747068:
                        break;
                    case 1747688:
                        int i7 = s * 2;
                        if (R.string.ۨ۠ۨ < 0) {
                            int i8 = i7;
                            r11 = a.a.a.a.a.۟ۥ۫("ۛۧۛ");
                            i4 = i8;
                            break;
                        } else {
                            break;
                        }
                    case 1748988:
                        if (i3 - (i4 + i5) < 0) {
                            str2 = "۟ۦۚ";
                            break;
                        } else {
                            str = "ۘۧۡ";
                        }
                    case 1749747:
                        ۗۡۚ.ۖ۫ۦ();
                        ۗ۬ۛ.ۜۡۤ();
                        throw new RuntimeException();
                    case 1749937:
                        if (R.ۚ۬ۙ == 0) {
                            str2 = "۫ۢ۠";
                            break;
                        }
                        break;
                    case 1752492:
                        ۗۡۚ.ۡ۠ۖ(Pragma.ۘۚۨ(sArr2, i, i2, i6));
                        return;
                    case 1755051:
                        ۗۡۚ.ۖ۫ۦ();
                        break;
                    case 1755342:
                        if (MediaInfo.۟ۥ۫ == 0) {
                            r11 = a.a.a.a.a.۟ۥ۫("۫ۖۙ");
                            s2 = 1;
                            break;
                        } else {
                            break;
                        }
                    case 1755592:
                        short[] sArr5 = ۛ۠ۜ;
                        if (ۧۗۛ.۠۠ۜ()) {
                            sArr2 = sArr5;
                            r11 = f.۠ۗۤ("ۙۖۖ");
                            i = 1;
                            break;
                        }
                        break;
                    case 1757934:
                        int i9 = s + s2;
                        int i10 = i9 * i9;
                        if (ۙۡۢ.ۡۡۜ()) {
                            int i11 = i10;
                            r11 = f.۠ۗۤ("۠۠ۨ");
                            i3 = i11;
                            break;
                        } else {
                            str = "۬۫ۛ";
                        }
                    case 1758313:
                        if (IjkMediaMeta.۠ۨۡ() == 0) {
                            str2 = "ۜۙۗ";
                            break;
                        }
                        break;
                    case 1759548:
                        if (ۙۡۢ.ۡۡۜ()) {
                            break;
                        }
                        break;
                    default:
                        short s3 = sArr[c2];
                        if (ۥۛۜ.۟ۡۥ > 0) {
                            short s4 = s3;
                            r11 = a.a.a.a.a.۟ۥ۫("ۨ۟ۥ");
                            s = s4;
                            break;
                        }
                        break;
                }
            }
            str2 = "۟۫ۨ";
        }
    }

    /* JADX WARNING: Code restructure failed: missing block: B:27:0x0056, code lost:
        r0 = "ۦۦۡ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:31:0x0061, code lost:
        r0 = "ۥۨ۫";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:34:0x006a, code lost:
        r0 = "ۦۖۖ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:37:0x0073, code lost:
        r0 = "ۙۙۦ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:4:0x000d, code lost:
        if (tv.danmaku.ijk.media.player.IjkTimedText.ۚۤۢ() >= 0) goto L_0x0056;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:8:0x001b, code lost:
        if (com.b.a.ۗۦۘ.۫ۘ۟() == false) goto L_0x0056;
     */
    public void b() {
        String str;
        String str2 = "ۨ۠ۖ";
        while (true) {
            int r0 = f.۠ۗۤ(str2);
            while (true) {
                switch (r0) {
                    case 1740742:
                        if (ForceTV.ۚۢۘ() <= 0) {
                            break;
                        }
                        break;
                    case 1752744:
                        ۜۙۚ.۬ۗۖ();
                        break;
                    case 1753126:
                        break;
                    case 1753633:
                        com.b.a.d.a.ۡۖۤ();
                        return;
                    case 1755358:
                        if (ۚۦۥ.ۘ۫ۘ()) {
                            if (۫ۢ۬.ۧۤۤ()) {
                                if (d.ۥۥ۠ < 0) {
                                    if (ۤۧۤ.ۨۧۥ() == 0 && c.ۡۖۡ()) {
                                        if (!۫ۧۤ.ۖۖ۠) {
                                            break;
                                        } else if (!ۜۙۚ.۬ۗۖ()) {
                                            if (۠۠ۖ.۠۟۟ == 0) {
                                                if (com.b.a.d.b.ۗۤۗ() > 0) {
                                                    if (!FFmpegApi.ۤۧۖ) {
                                                        com.b.a.e.c.ۡۜ۫(new Thread(new c(this)));
                                                        return;
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        break;
                }
                r0 = a.a.a.a.a.۟ۥ۫(str);
            }
            str2 = "۬ۧۚ";
        }
    }

    /* JADX WARNING: Code restructure failed: missing block: B:12:0x0047, code lost:
        if (com.best.besttv.a.۬۟ۘ() >= 0) goto L_0x0049;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:13:0x0049, code lost:
        r13 = r17;
        r12 = r18;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:30:0x00b1, code lost:
        r14 = "ۡۚ۟";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:34:0x00c2, code lost:
        r14 = a.a.a.a.a.۟ۥ۫(r14);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:38:0x00d5, code lost:
        r14 = "ۤۖۖ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:45:0x0109, code lost:
        r14 = "ۗۜ۠";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:52:0x013e, code lost:
        r14 = "ۥۦۥ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:56:0x0158, code lost:
        r14 = "ۢۚۘ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:60:0x0170, code lost:
        r14 = "ۗ۟ۚ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:62:0x0176, code lost:
        r14 = com.best.besttv.f.۠ۗۤ(r14);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:63:0x017a, code lost:
        r12 = r14;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:6:0x0029, code lost:
        r13 = r17;
        r12 = r18;
     */
    public long c(String str) {
        String str2;
        Context context = null;
        String str3 = null;
        short[] sArr = null;
        char c2 = 0;
        short s = 0;
        int i = 0;
        int i2 = 0;
        int i3 = 0;
        short s2 = 0;
        int i4 = 0;
        short[] sArr2 = null;
        int i5 = 0;
        int r12 = a.a.a.a.a.۟ۥ۫("ۡۜ۠");
        while (true) {
            switch (r12) {
                case 1738216:
                    String str4 = str;
                    int i6 = s + s2;
                    if ((i6 * i6) - i3 > 0) {
                        str2 = "ۙۧۥ";
                        break;
                    } else {
                        str2 = "ۥ۬ۘ";
                        break;
                    }
                case 1738907:
                    if (IjkMediaMeta.۠ۨۡ() != 0) {
                        String str5 = str;
                        break;
                    }
                    break;
                case 1738994:
                    break;
                case 1739084:
                    return FFmpegApi.ۨۡ۬(c.۫ۧۧ(context, str3, 0), str, 0);
                case 1740800:
                    String str6 = str;
                    if (ۚۦۥ.ۛۥۧ) {
                        r12 = f.۠ۗۤ("ۖۥۗ");
                        s2 = 11963;
                        break;
                    }
                    break;
                case 1741162:
                    String str7 = str;
                    short s3 = sArr[c2];
                    int i7 = s3 * s3;
                    if (FFmpegApi.۬ۛۤ()) {
                        r12 = f.۠ۗۤ("۟ۤۦ");
                        s = s3;
                        i = i7;
                        break;
                    }
                    break;
                case 1741175:
                    String str8 = str;
                    i4 = 64188;
                    break;
                case 1746849:
                    String str9 = str;
                    if (ۤۨۛ.ۗۜۡ()) {
                        r12 = f.۠ۗۤ("ۧۗۤ");
                        i2 = 0x0887bc99;
                        break;
                    }
                    break;
                case 1746938:
                    String str10 = str;
                    if (ۢ۟ۘ.ۡۦ۫ == 0) {
                        r12 = a.a.a.a.a.۟ۥ۫("۬ۙۚ");
                        i5 = 48;
                        break;
                    } else {
                        break;
                    }
                case 1747071:
                    String str11 = str;
                    if (ۗۢۛ.۫۟ۦ() == 0) {
                        r12 = a.a.a.a.a.۟ۥ۫("ۙۧۘ");
                        c2 = '/';
                        break;
                    }
                    break;
                case 1748517:
                    String str12 = str;
                    if (!af.ۨۛۗ()) {
                        String str13 = "ۡۤۚ";
                        break;
                    }
                    break;
                case 1748759:
                    String str14 = str;
                    short[] sArr3 = ۛ۠ۜ;
                    if (FFmpegApi.۬ۛۤ()) {
                        r12 = a.a.a.a.a.۟ۥ۫("۟۫۫");
                        sArr = sArr3;
                        break;
                    }
                    break;
                case 1749408:
                    ۤۧۤ.ۨۧۥ();
                    if (ۜۙۚ.ۥۛۚ <= 0) {
                        String str15 = str;
                        break;
                    }
                    break;
                case 1751204:
                    IjkMediaMeta.IjkStreamMeta.۟ۥۖ();
                    return 0;
                case 1752676:
                    MediaInfo.ۜۚۘ();
                    break;
                case 1752849:
                    String str16 = str;
                    i4 = 14370;
                    break;
                case 1754132:
                    String str17 = str;
                    int i8 = i + i2;
                    int i9 = i8 + i8;
                    if (ۗۦۘ.۫ۘ۟()) {
                        r12 = a.a.a.a.a.۟ۥ۫("ۙۛۢ");
                        i3 = i9;
                        break;
                    }
                    break;
                case 1758989:
                    String str18 = str;
                    String r13 = ۥۛۜ.ۥۦۙ(sArr2, i5, 4, i4);
                    if (IjkTimedText.ۚۤۢ() < 0) {
                        r12 = f.۠ۗۤ("ۗۢۗ");
                        str3 = r13;
                        break;
                    } else {
                        break;
                    }
                default:
                    String str19 = str;
                    Context context2 = this.a;
                    short[] sArr4 = ۛ۠ۜ;
                    if (ۜۙۚ.ۥۛۚ > 0) {
                        r12 = a.a.a.a.a.۟ۥ۫("۟ۧۢ");
                        context = context2;
                        sArr2 = sArr4;
                        break;
                    }
                    break;
            }
        }
    }

    /* JADX WARNING: Code restructure failed: missing block: B:10:0x0047, code lost:
        r16 = r1;
        r17 = r9;
        r1 = r22;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:25:0x00a1, code lost:
        r1 = "ۧۗۦ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:29:0x00b7, code lost:
        r1 = "ۡۥۡ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:30:0x00b9, code lost:
        r9 = r17;
        r21 = r16;
        r16 = com.best.besttv.f.۠ۗۤ(r1);
        r1 = r21;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:37:0x0104, code lost:
        r1 = r16;
        r16 = com.best.besttv.f.۠ۗۤ("ۨۙ۫");
     */
    /* JADX WARNING: Code restructure failed: missing block: B:41:0x011d, code lost:
        r9 = a.a.a.a.a.۟ۥ۫(r9);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:43:0x0124, code lost:
        r9 = com.best.besttv.f.۠ۗۤ(r9);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:44:0x0128, code lost:
        r1 = r16;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:45:0x012a, code lost:
        r16 = r9;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:55:0x0181, code lost:
        r9 = "ۚۙۚ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:59:0x019e, code lost:
        r9 = "ۚ۟ۛ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:63:0x01be, code lost:
        r9 = "ۧۛ۟";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:65:0x01cd, code lost:
        r9 = r17;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:6:0x0030, code lost:
        r16 = r1;
        r17 = r9;
        r1 = r22;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:9:0x0045, code lost:
        if (com.b.a.ۥۛۜ.۟ۡۥ <= 0) goto L_0x0047;
     */
    public String a() {
        int i;
        SharedPreferences sharedPreferences;
        SharedPreferences sharedPreferences2;
        SharedPreferences sharedPreferences3;
        SharedPreferences sharedPreferences4;
        SharedPreferences sharedPreferences5;
        SharedPreferences sharedPreferences6;
        Context context = null;
        SharedPreferences sharedPreferences7 = null;
        short[] sArr = null;
        char c2 = 0;
        short s = 0;
        int i2 = 0;
        int i3 = 0;
        short s2 = 0;
        int i4 = 0;
        int i5 = 0;
        short[] sArr2 = null;
        int i6 = 0;
        int i7 = 0;
        short[] sArr3 = null;
        int i8 = 0;
        int i9 = 0;
        int r16 = f.۠ۗۤ("ۜۗۨ");
        while (true) {
            switch (r16) {
                case 1737785:
                    sharedPreferences5 = sharedPreferences7;
                    i = i5;
                    sharedPreferences7 = h.۫ۙۘ(context, i.ۧۦۥ(sArr2, i6, i7, i5), 0);
                    if (ForceTV.ۙۛۨ > 0) {
                        r16 = f.۠ۗۤ("۟ۡۗ");
                        break;
                    }
                    break;
                case 1737953:
                    sharedPreferences6 = sharedPreferences7;
                    i = i5;
                    if (!۬ۢۛ.ۖۨۛ()) {
                        int i10 = f.۠ۗۤ("ۖۗۚ");
                        sharedPreferences7 = sharedPreferences6;
                        i7 = 4;
                        break;
                    }
                    break;
                case 1741691:
                    ۙۡۢ.ۡۡۜ();
                    break;
                case 1741878:
                    if (!ۜۙۚ.۬ۗۖ()) {
                        sharedPreferences6 = sharedPreferences7;
                        i = i5;
                        break;
                    }
                    break;
                case 1743255:
                    sharedPreferences = sharedPreferences7;
                    i = i5;
                    if ((i4 + 1) - i3 <= 0) {
                        String str = "ۡۙۜ";
                        break;
                    } else {
                        String str2 = "ۢۢۜ";
                        break;
                    }
                case 1743565:
                    sharedPreferences2 = sharedPreferences7;
                    i = i5;
                    short[] sArr4 = ۛ۠ۜ;
                    if (com.b.a.d.c.۬۠ۢ < 0) {
                        sharedPreferences7 = sharedPreferences2;
                        r16 = a.a.a.a.a.۟ۥ۫("ۜۦ۠");
                        sArr = sArr4;
                        break;
                    }
                    break;
                case 1744022:
                    sharedPreferences3 = sharedPreferences7;
                    i = i5;
                    if (!R.ۘۛۚ()) {
                        sharedPreferences7 = sharedPreferences3;
                        i5 = i;
                        r16 = f.۠ۗۤ("ۘۛۥ");
                        c2 = 8;
                        break;
                    }
                    break;
                case 1746741:
                    short[] sArr5 = ۛ۠ۜ;
                    if (ۤۧۤ.ۨۧۥ() == 0) {
                        i8 = 13;
                        i9 = 3;
                        short[] sArr6 = sArr5;
                        r16 = a.a.a.a.a.۟ۥ۫("۫ۜۜ");
                        sArr3 = sArr6;
                        break;
                    } else {
                        sharedPreferences5 = sharedPreferences7;
                        i = i5;
                        break;
                    }
                case 1748420:
                    sharedPreferences4 = sharedPreferences7;
                    i5 = 53457;
                    break;
                case 1748631:
                    sharedPreferences2 = sharedPreferences7;
                    i = i5;
                    int i11 = s + 1;
                    if (DebugLog.۟۬ۖ < 0) {
                        sharedPreferences7 = sharedPreferences2;
                        r16 = f.۠ۗۤ("ۢۗۤ");
                        i2 = i11;
                        break;
                    }
                    break;
                case 1748797:
                    ۗ۬ۛ.ۜۡۤ();
                    break;
                case 1749327:
                    sharedPreferences3 = sharedPreferences7;
                    i = i5;
                    int i12 = i2 * i2;
                    if (!ۜۙۚ.۬ۗۖ()) {
                        sharedPreferences7 = sharedPreferences3;
                        s2 = 2;
                        r16 = a.a.a.a.a.۟ۥ۫("۬ۚ۬");
                        i3 = i12;
                        break;
                    }
                    break;
                case 1749660:
                    sharedPreferences4 = sharedPreferences7;
                    i5 = 22743;
                    break;
                case 1754134:
                    ۠۠ۖ.ۙۡ۬();
                    if (ۗۦۘ.۟۫ۙ) {
                        sharedPreferences = sharedPreferences7;
                        i = i5;
                        break;
                    }
                    break;
                case 1754251:
                    ۬ۥۨ.ۗۙۢ();
                    return null;
                case 1755162:
                    sharedPreferences2 = sharedPreferences7;
                    i = i5;
                    Context context2 = this.a;
                    short[] sArr7 = ۛ۠ۜ;
                    if (ۚۦۥ.ۘ۫ۘ()) {
                        sharedPreferences7 = sharedPreferences2;
                        sArr2 = sArr7;
                        i6 = 9;
                        r16 = f.۠ۗۤ("ۖۜۧ");
                        context = context2;
                        break;
                    }
                    break;
                case 1758123:
                    return com.best.besttv.a.ۙۚ۫(sharedPreferences7, ۗ۬ۛ.ۜۦۛ(sArr3, i8, i9, i5), "");
                case 1759038:
                    sharedPreferences3 = sharedPreferences7;
                    i = i5;
                    int i13 = s * s2;
                    if (!FFmpegApi.ۤۧۖ) {
                        sharedPreferences7 = sharedPreferences3;
                        r16 = f.۠ۗۤ("ۛ۬ۨ");
                        i4 = i13;
                        break;
                    }
                    break;
                default:
                    sharedPreferences = sharedPreferences7;
                    i = i5;
                    short s3 = sArr[c2];
                    if (ۨۖۚ.ۥۘۧ() > 0) {
                        sharedPreferences7 = sharedPreferences;
                        r16 = a.a.a.a.a.۟ۥ۫("ۡ۠ۖ");
                        s = s3;
                        break;
                    }
                    break;
            }
        }
    }

    /* JADX WARNING: Can't fix incorrect switch cases order */
    /* JADX WARNING: Code restructure failed: missing block: B:10:0x0042, code lost:
        if (tv.danmaku.ijk.media.player.ffmpeg.FFmpegApi.ۤۧۖ == false) goto L_0x0044;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:11:0x0044, code lost:
        r15 = r20;
        r12 = r21;
        r13 = r22;
        r16 = r0;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:30:0x00c9, code lost:
        r0 = "ۖۦ۬";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:34:0x00f5, code lost:
        r0 = "ۜۜۦ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:44:0x013d, code lost:
        r0 = "۟ۘ۠";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:48:0x015e, code lost:
        r0 = "ۗۦ۫";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:56:0x0192, code lost:
        r0 = "۟ۨۗ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:58:0x0197, code lost:
        r0 = a.a.a.a.a.۟ۥ۫(r0);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:63:0x01af, code lost:
        r0 = com.best.besttv.f.۠ۗۤ(r0);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:64:0x01b3, code lost:
        r12 = r0;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:65:0x01b4, code lost:
        r0 = r16;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:6:0x002c, code lost:
        r15 = r20;
        r12 = r21;
        r13 = r22;
        r16 = r0;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:8:0x003c, code lost:
        r16 = r0;
     */
    public void a(String str, long j) {
        Context context;
        String str2;
        Context context2;
        Context context3 = null;
        String str3 = null;
        SharedPreferences.Editor editor = null;
        short[] sArr = null;
        short s = 0;
        short s2 = 0;
        int i = 0;
        short s3 = 0;
        int i2 = 0;
        int i3 = 0;
        short[] sArr2 = null;
        int i4 = 0;
        int r12 = a.a.a.a.a.۟ۥ۫("ۙۛ۬");
        while (true) {
            switch (r12) {
                case 1738268:
                    if (ۚۦۥ.ۘ۫ۘ()) {
                        String str4 = str;
                        long j2 = j;
                        context = context3;
                        break;
                    }
                    break;
                case 1738804:
                    ۢ۟ۘ.ۡ۬ۙ();
                    b.ۙۡۙ();
                    return;
                case 1739228:
                    MediaInfo.ۜۚۘ();
                    if (ForceTV.ۙۛۨ <= 0) {
                        String str5 = str;
                        long j3 = j;
                        break;
                    }
                    break;
                case 1740115:
                    String str6 = str;
                    long j4 = j;
                    String r15 = ۚۦۥ.ۛۛۢ(sArr2, i4, 4, i3);
                    if (com.b.a.d.a.ۡۖۤ() > 0) {
                        r12 = f.۠ۗۤ("ۡۧۡ");
                        str3 = r15;
                        break;
                    } else {
                        break;
                    }
                case 1740810:
                    String str7 = str;
                    long j5 = j;
                    context = context3;
                    if (ۗۦۘ.۫ۘ۟()) {
                        str2 = "۠ۜ۟";
                        break;
                    }
                case 1743718:
                    String str8 = str;
                    long j6 = j;
                    context = context3;
                    context3 = this.a;
                    short[] sArr3 = ۛ۠ۜ;
                    if (!com.b.a.e.a.ۖۡ۫()) {
                        r12 = a.a.a.a.a.۟ۥ۫("ۘۤ۟");
                        sArr2 = sArr3;
                        i4 = 33;
                        break;
                    }
                    break;
                case 1746471:
                    c.ۡۖۡ();
                    ۙۡۢ.ۡۡۜ();
                    break;
                case 1746958:
                    break;
                case 1747555:
                    String str9 = str;
                    long j7 = j;
                    context = context3;
                    if (com.best.besttv.a.ۨ۠ۜ > 0) {
                        String str10 = "ۚ۠۠";
                        break;
                    }
                    break;
                case 1748436:
                    String str11 = str;
                    long j8 = j;
                    context = context3;
                    int i5 = s + s2;
                    int i6 = i5 * i5;
                    if (۬ۥۨ.ۨۧ۟) {
                        r12 = a.a.a.a.a.۟ۥ۫("۬ۦۖ");
                        s3 = 2;
                        i = i6;
                        break;
                    }
                    break;
                case 1748859:
                    String str12 = str;
                    long j9 = j;
                    SharedPreferences.Editor r152 = com.b.a.d.a.ۜۡۙ(h.۫ۙۘ(context3, str3, 0));
                    if (ۛۛ۠.ۦ۟ۢ > 0) {
                        r12 = f.۠ۗۤ("ۥ۬ۚ");
                        editor = r152;
                        break;
                    } else {
                        context = context3;
                        break;
                    }
                case 1752291:
                    String str13 = str;
                    long j10 = j;
                    context2 = context3;
                    i3 = 9966;
                    break;
                case 1752851:
                    com.d.f.ۧۨۛ(editor, str, j);
                    com.d.a.ۖۤۡ(editor);
                    return;
                case 1754222:
                    String str14 = str;
                    long j11 = j;
                    context2 = context3;
                    i3 = 58486;
                    break;
                case 1755128:
                    String str15 = str;
                    long j12 = j;
                    context = context3;
                    short[] sArr4 = ۛ۠ۜ;
                    if (com.b.a.d.b.ۜۜۡ == 0) {
                        r12 = f.۠ۗۤ("ۨۧۡ");
                        sArr = sArr4;
                        break;
                    }
                    str2 = "ۗۙۖ";
                    break;
                case 1755586:
                    String str16 = str;
                    long j13 = j;
                    context = context3;
                    short s4 = sArr[32];
                    if (com.a.a.b.ۜ۫۠ == 0) {
                        r12 = f.۠ۗۤ("ۡۙ۬");
                        s2 = 1;
                        s = s4;
                        break;
                    }
                    break;
                case 1759388:
                    String str17 = str;
                    long j14 = j;
                    context = context3;
                    int i7 = s * s3;
                    if (MediaInfo.ۜۚۘ() < 0) {
                        r12 = a.a.a.a.a.۟ۥ۫("۬ۧۨ");
                        i2 = i7;
                        break;
                    }
                    str2 = "ۗۙۖ";
                    break;
                case 1759437:
                    String str18 = str;
                    long j15 = j;
                    context = context3;
                    if (i - (i2 + 1) < 0) {
                        str2 = "ۧۚۡ";
                        break;
                    } else {
                        str2 = "ۥۚۘ";
                        break;
                    }
                default:
                    String str19 = str;
                    long j16 = j;
                    context = context3;
                    if (ۨۖۚ.ۥۘۧ() > 0) {
                        str2 = "ۨۘۨ";
                        break;
                    }
                    break;
            }
        }
    }

    /* JADX WARNING: Can't fix incorrect switch cases order */
    /* JADX WARNING: Code restructure failed: missing block: B:45:0x008e, code lost:
        r1 = a.a.a.a.a.۟ۥ۫(r1);
     */
    public a(Context context) {
        String str;
        Handler handler = null;
        String str2 = "ۘۨۡ";
        while (true) {
            int r1 = f.۠ۗۤ(str2);
            while (true) {
                switch (r1) {
                    case 1738050:
                        if (!IjkTimedText.ۙۗۜ) {
                            str2 = "ۢۜۜ";
                            break;
                        }
                    case 1738267:
                        if (com.b.a.d.b.ۜۜۡ != 0) {
                        }
                    case 1738871:
                        if (ۗۢۛ.۬۠ۤ == 0) {
                            str = "ۧۢ۟";
                            break;
                        }
                    case 1739813:
                        if (!ۦۧ۠.ۘۡۘ) {
                            str = "۬۫ۜ";
                            break;
                        }
                    case 1740241:
                        Handler bVar = new b(this);
                        if (MediaInfo.۟ۥ۫ == 0) {
                            Handler handler2 = bVar;
                            r1 = a.a.a.a.a.۟ۥ۫("ۨ۬۠");
                            handler = handler2;
                            break;
                        }
                        str = "ۖۦ۫";
                        break;
                    case 1743103:
                        if (ۗۡۚ.ۖ۫ۦ() < 0) {
                            str = "ۗۛۛ";
                            break;
                        }
                    case 1747097:
                        ۥۛۜ.ۜۛۡ();
                        throw new RuntimeException();
                    case 1747400:
                        this.c = handler;
                        this.a = context;
                        return;
                    case 1747413:
                        if (!com.d.a.ۜۤۧ()) {
                            str = "ۖ۟۫";
                            break;
                        }
                    case 1749474:
                        if (ۧۗۛ.۠۠ۜ()) {
                            str2 = "ۘۚۧ";
                            break;
                        }
                    case 1754468:
                        if (ۗۢۛ.۬۠ۤ == 0) {
                            str2 = "۠ۗ۟";
                            break;
                        }
                        str = "۫ۛۖ";
                        break;
                    case 1755610:
                        Pragma.۫ۚۘ();
                        if (com.d.f.ۘۜۡ == 0) {
                            str2 = "ۜۖ۫";
                            break;
                        }
                        str = "ۖۦ۫";
                        break;
                    case 1755740:
                        if (!ۦۧ۠.ۘۡۘ) {
                            str = "۠ۗ۬";
                            break;
                        }
                    case 1758086:
                        ۤۨۛ.ۗۜۡ();
                        if (IjkMediaMeta.IjkStreamMeta.۟ۥۖ() >= 0) {
                            str2 = "ۨۨۚ";
                            break;
                        }
                        str = "۟۬ۦ";
                        break;
                    case 1759549:
                        if (ۗۢۛ.۫۟ۦ() == 0) {
                            str = "ۛۧ۫";
                            break;
                        } else {
                            str2 = "ۜۖ۫";
                            break;
                        }
                    default:
                        com.b.a.e.a.ۖۡ۫();
                }
            }
        }
    }

    /* JADX WARNING: Can't fix incorrect switch cases order */
    /* JADX WARNING: Code restructure failed: missing block: B:11:0x004a, code lost:
        if (com.b.a.ۤۧۤ.ۦۤۖ >= 0) goto L_0x004c;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:12:0x004c, code lost:
        r11 = r16;
        r9 = r17;
        r10 = r18;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:30:0x00d1, code lost:
        r12 = "ۥۙۧ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:37:0x00fb, code lost:
        r12 = "۠ۘۢ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:44:0x0130, code lost:
        r12 = "ۦۚۛ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:48:0x0149, code lost:
        r12 = "۟۟ۢ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:53:0x015e, code lost:
        r12 = a.a.a.a.a.۟ۥ۫(r12);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:5:0x0026, code lost:
        r11 = r16;
        r9 = r17;
        r10 = r18;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:61:0x0182, code lost:
        r12 = com.best.besttv.f.۠ۗۤ(r12);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:62:0x0186, code lost:
        r9 = r12;
     */
    public void a(String str, String str2) {
        String str3;
        String str4;
        Context context = null;
        int i = 0;
        short[] sArr = null;
        String str5 = null;
        int i2 = 0;
        SharedPreferences.Editor editor = null;
        short[] sArr2 = null;
        short s = 0;
        int i3 = 0;
        int r9 = a.a.a.a.a.۟ۥ۫("ۨۙۙ");
        while (true) {
            switch (r9) {
                case 1738413:
                    String str6 = str;
                    String str7 = str2;
                    int i4 = (s * s) + 0x027b9764;
                    if (R.string.ۖۚ۠() < 0) {
                        r9 = f.۠ۗۤ("ۢۧۜ");
                        i3 = i4;
                        break;
                    }
                    break;
                case 1741084:
                    h.ۛۙۡ();
                    break;
                case 1744021:
                    String str8 = str;
                    String str9 = str2;
                    if (IjkMediaMeta.۠ۨۡ() == 0) {
                        str3 = "۠ۥۦ";
                        break;
                    }
                case 1746404:
                    String str10 = str;
                    String str11 = str2;
                    SharedPreferences.Editor r11 = DebugLog.ۘ۬ۢ(c.۫ۧۧ(context, str5, 0));
                    if (!۫ۧۤ.ۗ۠ۢ()) {
                        r9 = a.a.a.a.a.۟ۥ۫("ۤۦۗ");
                        editor = r11;
                        break;
                    } else {
                        break;
                    }
                case 1746690:
                    Pragma.۫ۚۘ();
                    ۬ۢۛ.ۖۨۛ();
                    break;
                case 1747434:
                    R.string.ۖۚ۠();
                    return;
                case 1747794:
                    String str12 = str;
                    String str13 = str2;
                    if (f.۠۫ۖ() == 0) {
                        str3 = "ۦۚۨ";
                        break;
                    }
                    break;
                case 1747841:
                    String str14 = str;
                    String str15 = str2;
                    if (com.b.a.d.a.ۡۖۤ() > 0) {
                        str4 = "۠ۤۖ";
                        break;
                    }
                case 1749660:
                    String str16 = str;
                    String str17 = str2;
                    short s2 = sArr2[37];
                    if (ۛۛ۠.ۦۜۗ() > 0) {
                        r9 = f.۠ۗۤ("ۖ۫ۢ");
                        s = s2;
                        break;
                    }
                    break;
                case 1749815:
                    String str18 = str;
                    String str19 = str2;
                    if (i3 - (s * 12908) >= 0) {
                        str3 = "ۤ۟ۢ";
                        break;
                    } else {
                        str3 = "ۘۙ۠";
                        break;
                    }
                case 1751495:
                    String str20 = str;
                    String str21 = str2;
                    i = 1473;
                    break;
                case 1751701:
                    d.ۜۗۧ(editor, str, str2);
                    R.string.ۛۚۡ(editor);
                    return;
                case 1752275:
                    String str22 = str;
                    String str23 = str2;
                    Context context2 = this.a;
                    short[] sArr3 = ۛ۠ۜ;
                    if (IjkMediaMeta.۟ۦ۫ < 0) {
                        r9 = f.۠ۗۤ("ۥ۠ۨ");
                        context = context2;
                        sArr = sArr3;
                        i2 = 38;
                        break;
                    }
                    str4 = "۬ۢۜ";
                    break;
                case 1752493:
                    String str24 = str;
                    String str25 = str2;
                    String r112 = a.a.a.a.a.ۚۛۧ(sArr, i2, 4, i);
                    if (ۛۛ۠.ۦ۟ۢ > 0) {
                        r9 = f.۠ۗۤ("۟ۖۛ");
                        str5 = r112;
                        break;
                    }
                case 1753255:
                    a.a.a.a.a.ۧۗۤ();
                    if (ۛۛ۠.ۦۜۗ() > 0) {
                        String str26 = str;
                        String str27 = str2;
                        str4 = "۬ۢۜ";
                        break;
                    }
                    break;
                case 1753268:
                    String str28 = str;
                    String str29 = str2;
                    short[] sArr4 = ۛ۠ۜ;
                    if (!IjkTimedText.ۙۗۜ) {
                        r9 = a.a.a.a.a.۟ۥ۫("ۢۢۜ");
                        sArr2 = sArr4;
                        break;
                    }
                    break;
                case 1755144:
                    String str30 = str;
                    String str31 = str2;
                    if (ۢ۟ۘ.ۡۦ۫ == 0) {
                        str3 = "ۜۦ۟";
                        break;
                    }
                    str4 = "۬ۢۜ";
                    break;
                case 1759270:
                    ۦۧ۠.۟۬ۢ();
                    if (!com.d.f.۠ۘ۟()) {
                        String str32 = str;
                        String str33 = str2;
                        r9 = f.۠ۗۤ("ۙۤۧ");
                        break;
                    }
                    break;
                default:
                    String str34 = str;
                    String str35 = str2;
                    i = 39847;
                    break;
            }
        }
    }

    /* JADX WARNING: Code restructure failed: missing block: B:11:0x0038, code lost:
        if (com.b.a.ۗ۬ۛ.ۖۚۗ != 0) goto L_0x002d;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:12:0x003b, code lost:
        r13 = a.a.a.a.a.۟ۥ۫("ۖۧۙ");
     */
    /* JADX WARNING: Code restructure failed: missing block: B:20:0x0066, code lost:
        r14 = "ۙ۠ۥ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:30:0x00a8, code lost:
        r14 = "ۘۦۡ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:35:0x00bc, code lost:
        r14 = a.a.a.a.a.۟ۥ۫(r14);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:50:0x0132, code lost:
        r14 = "ۛ۫ۗ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:54:0x014a, code lost:
        r14 = "ۨۤۚ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:58:0x0161, code lost:
        r14 = "ۛۨۢ";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:60:0x0167, code lost:
        r14 = com.best.besttv.f.۠ۗۤ(r14);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:61:0x016b, code lost:
        r13 = r14;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:8:0x002d, code lost:
        r15 = r18;
        r13 = r19;
     */
    public int b(String str) {
        String str2;
        int i = 0;
        Context context = null;
        short[] sArr = null;
        char c2 = 0;
        short s = 0;
        short s2 = 0;
        int i2 = 0;
        int i3 = 0;
        int i4 = 0;
        int i5 = 0;
        int i6 = 0;
        short[] sArr2 = null;
        int i7 = 0;
        int r13 = f.۠ۗۤ("۬ۚۤ");
        while (true) {
            switch (r13) {
                case 1738280:
                    Pragma.۫ۚۘ();
                    break;
                case 1739213:
                    String str3 = str;
                    short[] sArr3 = ۛ۠ۜ;
                    if (ۜۙۚ.ۥۛۚ > 0) {
                        r13 = a.a.a.a.a.۟ۥ۫("۠۠ۛ");
                        sArr = sArr3;
                        break;
                    }
                    break;
                case 1740179:
                    String str4 = str;
                    Context context2 = this.a;
                    if (com.b.a.e.c.ۙۥۥ()) {
                        r13 = a.a.a.a.a.۟ۥ۫("ۤۦۗ");
                        context = context2;
                        i = 0;
                        break;
                    }
                    break;
                case 1740958:
                    break;
                case 1743096:
                    String str5 = str;
                    if (a.a.a.a.a.ۧۦۛ < 0) {
                        r13 = f.۠ۗۤ("۫۫۠");
                        i7 = 43;
                        break;
                    }
                    break;
                case 1743113:
                    String str6 = str;
                    i6 = 28995;
                    break;
                case 1743125:
                    if (!ۙۡۢ.۫ۦۦ) {
                        String str7 = str;
                        break;
                    }
                    break;
                case 1743207:
                    R.ۘۛۚ();
                    FFmpegApi.۬ۛۤ();
                    return 0;
                case 1743723:
                    String str8 = str;
                    int i8 = i4 + i5;
                    if ((i8 + i8) - i3 >= 0) {
                        String str9 = "ۗۧ۠";
                        break;
                    } else {
                        str2 = "ۛۨۖ";
                        break;
                    }
                case 1743807:
                    String str10 = str;
                    short s3 = sArr[c2];
                    if (!۬ۥۨ.ۗۙۢ()) {
                        r13 = a.a.a.a.a.۟ۥ۫("۬۬۟");
                        s = s3;
                        s2 = 11195;
                        break;
                    }
                    break;
                case 1747675:
                    String str11 = str;
                    if (ۗ۬ۛ.ۖۚۗ == 0) {
                        r13 = f.۠ۗۤ("ۜ۟ۢ");
                        c2 = '*';
                        break;
                    }
                    break;
                case 1748807:
                    String str12 = str;
                    if (۫ۧۤ.ۖۖ۠) {
                        r13 = a.a.a.a.a.۟ۥ۫("ۜۜ۫");
                        i5 = 0x07785a99;
                        break;
                    }
                    break;
                case 1751701:
                    String str13 = str;
                    short[] sArr4 = ۛ۠ۜ;
                    if (com.b.a.d.ۤۖۗ < 0) {
                        r13 = f.۠ۗۤ("ۛۧۤ");
                        sArr2 = sArr4;
                        break;
                    } else {
                        break;
                    }
                case 1755486:
                    if (a.a.a.a.a.ۧۦۛ >= 0) {
                        String str14 = str;
                        break;
                    }
                    break;
                case 1758592:
                    return com.b.a.d.c.ۦۗ۠(h.۫ۙۘ(context, d.۟ۘ۠(sArr2, i7, 4, i6), i), str, i);
                case 1759030:
                    String str15 = str;
                    if (h.ۛۙۡ() == 0) {
                        str2 = "ۗۦۜ";
                        break;
                    }
                    break;
                case 1759249:
                    String str16 = str;
                    int i9 = i2 * i2;
                    int i10 = s * s;
                    if (۬ۢۛ.ۡۦۜ == 0) {
                        r13 = f.۠ۗۤ("ۡۥ۫");
                        i3 = i9;
                        i4 = i10;
                        break;
                    }
                    break;
                case 1759583:
                    String str17 = str;
                    int i11 = s + s2;
                    if (c.ۡۖۡ()) {
                        r13 = a.a.a.a.a.۟ۥ۫("۬ۡۦ");
                        i2 = i11;
                        break;
                    }
                    break;
                default:
                    String str18 = str;
                    i6 = 1374;
                    break;
            }
        }
    }
}
